package com.system.xingzhi.model;

import java.util.UUID;

public class RolePermission {
    private String nodeId;

    private String roleId;

    private String roleName;

    private String parentId;

    private String nodeType;

    private String nodeName;

    private String nodeValue;

    private String pageId;

    private String pageName;

    private String componentId;

    private String componentName;

    private String componentPermissionId;

    private String componentPermissionName;

    private Page page;

    private Component component;

    private ComponentPermission componentPermission;

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }

    public ComponentPermission getComponentPermission() {
        return componentPermission;
    }

    public void setComponentPermission(ComponentPermission componentPermission) {
        this.componentPermission = componentPermission;
    }

    public RolePermission() {
        this.setNodeId(UUID.randomUUID().toString());
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId == null ? null : nodeId.trim();
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType == null ? null : nodeType.trim();
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName == null ? null : nodeName.trim();
    }

    public String getNodeValue() {
        return nodeValue;
    }

    public void setNodeValue(String nodeValue) {
        this.nodeValue = nodeValue == null ? null : nodeValue.trim();
    }

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId == null ? null : pageId.trim();
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName == null ? null : pageName.trim();
    }

    public String getComponentId() {
        return componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId == null ? null : componentId.trim();
    }

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName == null ? null : componentName.trim();
    }

    public String getComponentPermissionId() {
        return componentPermissionId;
    }

    public void setComponentPermissionId(String componentPermissionId) {
        this.componentPermissionId = componentPermissionId == null ? null : componentPermissionId.trim();
    }

    public String getComponentPermissionName() {
        return componentPermissionName;
    }

    public void setComponentPermissionName(String componentPermissionName) {
        this.componentPermissionName = componentPermissionName == null ? null : componentPermissionName.trim();
    }
}